/* 
 * File:   main.cpp
 * Author: Yujie Hao
 *
 * Created on February 10, 2013, 10:06 PM
 */

#include <cstdlib>
#include <iostream>

using namespace std;

/*
 * 
 */
int main(int argc, char** argv) {
    int seconds;
    bool flag = true;
    while(flag) {
        cout << "Please enter a random seconds here:";
        cin >> seconds;
        if(seconds == 999) {
            flag = false;
        }
        int remainingSeconds = seconds % 60;
        int minutes = seconds / 60;
        cout << "It equals to " << minutes << " minutes and " << remainingSeconds << endl;
    }
    
    return 0;
}

